import Layout from '@/layout/index.vue';
import type { AppRoute } from '@/types/route';

const wallRouter: AppRoute[] = [
  {
    path: '/wall',
    component: Layout,
    redirect: '/wall/index',
    name: 'wall',
    meta: {
      title: '留言墙',
      icon: 'chat-square',
      roles: ['USER']
    },
    children: [
      {
        path: '/wall/index',
        component: () => import('@/views/wall/index.vue'),
        name: 'wallShow',
        meta: {
          title: '留言墙',
          icon: 'chat-square',
          roles: ['USER']
        },
        hidden: true
      }
    ]
  }
];

export default wallRouter;
